//
//  LEStoreViewController.m
//  LoveExpressBusiness
//
//  Created by 刘甲奇 on 2017/5/10.
//  Copyright © 2017年 DFH. All rights reserved.
//

#import "LEStaffController.h"
#import "LEPassedStaffController.h"
#import "LEUnpassedController.h"
#import "LECheckStaffController.h"

@interface LEStaffController ()

@end

@implementation LEStaffController

- (void)awakeFromNib
{
    [super awakeFromNib];
    self.title = @"员工管理";
    
    self.menuViewStyle = WMMenuViewStyleLine;
    self.selectIndex = 0;
    self.menuHeight = 40;
    self.titleColorSelected = LESystemBlueColor;
    self.titleColorNormal = LEHaxColor(0x707070);
    self.progressWidth = LEScreenWidth /3.0;
    self.menuBGColor = [UIColor whiteColor];
    

    
}
- (void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]}];
    
    //分割线
    UIView *lineView = [[UIView alloc] init];
    [self.menuView addSubview:lineView];
    lineView.frame = CGRectMake(0, 39, LEScreenWidth, 1);
    lineView.backgroundColor = LEBackgroundColor;
    
}
- (NSInteger)numbersOfChildControllersInPageController:(WMPageController *)pageController
{
    return 3;
}

- (__kindof UIViewController *)pageController:(WMPageController *)pageController viewControllerAtIndex:(NSInteger)index
{
    if (index == 0)
    {
        LEPassedStaffController *passed = [[LEPassedStaffController alloc] init];
        return passed;
    }else if(index == 1)
    {
        return [[LEUnpassedController alloc]init];
    }
    else {
        return [[LECheckStaffController alloc] init];
    }
    
}

- (NSString *)pageController:(WMPageController *)pageController titleAtIndex:(NSInteger)index
{

    if (index == 0) {
        return @"通过";
    }else if (index == 1){
        return @"未通过";
    }else{
        return @"审核中";
    }
    
}

@end
